package com.schoolhelper.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.schoolhelper.entity.TUser;
import com.schoolhelper.vo.OrderDiscussVo;
import com.schoolhelper.vo.UserFollowerVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.apache.ibatis.annotations.Select;


import java.util.List;

/**
 * (TUser)表数据库访问层
 *
 * @author makejava
 * @since 2021-04-23 21:03:37
 */
@Repository
public interface TUserDao extends BaseMapper<TUser> {


    List<TUser> getUserByCondition(@Param("userId") String userId, @Param("username") String username,
                                   @Param("password") String password, @Param("isVip") String isVip,
                                   @Param("school") String school, @Param("phone") String phone,
                                   @Param("studentId") String studentId, @Param("credit") String credit);



    List<TUser> queryAll(@Param("userId") String userId, @Param("username") String username,
                         @Param("password") String password, @Param("isVip") String isVip,
                         @Param("school") String school, @Param("phone") String phone,
                         @Param("studentId") String studentId, @Param("credit") String credit);

    List<UserFollowerVo> getUserFollower(Integer userId);



}
